<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let AA=[]
    let num = prompt('请输入班级的人数：');
    let sum = 0;
    let avage = 0;
    for (i = 1; i <= num; i++) {
         let score = prompt('你输入的' + i + '个的成绩')
         AA[i]=score
         sum = sum + parseFloat(score);
    }

    let max = AA[1];
    let min = AA[1];
    for(let a=1;a<AA.length;a++){
        if(max<AA[a]){
            max = AA[a];
        }
        if(min>AA[a]){
            min = AA[a];
        }
    }
    
    avage = sum / num;
    console.log(AA)
    console.log('班级的总成绩为：' + sum);
    console.log('班级的平均成绩为：' + avage);
    console.log("班级的最高分 = "+max )
    console.log("班级的最低分 = "+min )
</script>
</html>